/*
 * Postmore - a pop3 supported mailing list server;
 * Copyright (C) 2010 Peng Lei, pyp125@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
 * details.
 *
 * You should have received a copy of the GNU Public License along with this
 * program. If not, see http://www.gnu.org/licenses/.
 */
/* This file defines the strings which will be used in this program. */
#ifndef _PMSTR_H_

#define _PMSTR_H_

#define FORK_FAIL "Failed to create new process."
#define WRITE_FAIL "Failed to write file."
#define READ_FAIL "Failed to read file."
#define SOCK_FAIL "Failed to create socket."
#define CONNECT_FAIL "Connect error: Failed to create connection."
#define SEND_FAIL "Socket error: Send failed."
#define RECV_FAIL "Socket error: Recv failed."
#define POP3_CFG_ERROR "Failed to load pop3 configuration."
#define POP3_USER "USER %s\r\n"
#define POP3_PASS "PASS %s\r\n"
#define POP3_UIDL "UIDL %d\r\n"
#define POP3_STAT "STAT\r\n"
#define POP3_STAT_STR "+OK %d %d"
#define POP3_STAT_FORMAT_IS_NOT_MATH "The return value of pop3 STAT is not math."
#define POP3_LIST "LIST %d\r\n"
#define POP3_RETR "RETR %d\r\n"
#define POP3_DELE "DELE %d\r\n"
#define POP3_DELE_FAIL "POP3 Server: Failed to delete a mail."
#define POP3_QUIT "QUIT\r\n"
#define POP3_NOOP "NOOP\r\n"
#define POP3_CONNECT_FAIL "Unable to connect to pop3 server."
#define POP3_WRONG_USERNAME "POP3 Server: Wrong username."
#define POP3_WRONG_PASSWORD "POP3 Server: Wrong pasword."
#define POP3_AUTH_FAIL "POP3 Server: Authorize failed."
#define POP3_PROCESS_EXIT "The POP3 process exited."
#define SMTP_CFG_ERROR "Failed to load smtp configuration."
#define SMTP_EHLO "EHLO %s\r\n"
#define SMTP_AUTH_LOGIN "AUTH LOGIN\r\n"
#define SMTP_MAIL_FROM "MAIL FROM:<%s>\r\n"
#define SMTP_RCPT_TO "RCPT TO:%s\r\n"
#define SMTP_RCPT_TO_RAW "RCPT TO:<%s>\r\n"
#define SMTP_RCPT_TO_ERROR "Can not add receiver."
#define SMTP_REPLYTO "Reply-To:<%s>\r\n"
#define SMTP_DATA "DATA\r\n"
#define SMTP_DATA_DATA "%s%s\r\n"
#define SMTP_DATA_END ".\r\n"
#define SMTP_SEND_FAIL "SMTP Server: Failed to send mail."
#define SMTP_NOOP "NOOP\r\n"
#define SMTP_QUIT "QUIT\r\n"
#define SMTP_CONNECT_FAIL "Unable to connect to SMTP server."
#define SMTP_LOGIN_REFUSE "SMTP Server: Login request has been refused."
#define SMTP_WRONG_USERNAME "SMTP Server: Wrong username."
#define SMTP_WRONG_PASSWORD "SMTP Server: Wrong password."
#define SMTP_PROCESS_EXIT "The SMTP process exited."
#define PM_SUBJECT_SUB "Subject: subscribe"
#define PM_SUBJECT_USUB "Subject: usubscribe"
#define PM_EXE_HELP_C "-c configuration\nLoad a certain configuration.\n"
#define PM_EXE_HELP_R "-r\nRun the configuration which has been loaded.\n"
#define PM_EXE_HELP_V "-v\nShow the version information.\n"
#define PM_EXE_WRONG_CONFIG "pm.exe: the configuration is not exists or has wrong format."
#define PM_PIPE_FAIL "Failed to create a pipe."
#define PM_FILE_PERMISSION "Failed to create/write file, please make sure you have relative permissions."
#define PM_FAIL_WRITE_SUBS "Failed to write data into the subscribers' file."
#define PM_NO_SUBSCRIBER "No subscriber."
#define PM_SUBS_ERROR "Failed to load subscribers' list."
#define PM_SUBSCRIBED "Subject: Welcome\r\n\r\nDear %s:\r\nYou have subscribed %s.\r\n-------\r\nPowered by postmore v0.1\r\n.\r\n"
#define PM_USUBSCRIBE "Subject: Goodbye\r\n\r\nDear %s:\r\nYou have unsubscribed %s.\r\n-------\r\nPowered by postmore v0.1\r\n.\r\n"

#endif